<template>
  <div>
    <Header></Header>
    <!-- 路由出口组件 -->
    <router-view></router-view>
    <!-- 在home和search上显示 -->
    <Footer v-show="$route.path==='/home' ||$route.path ==='/search'"></Footer>
  </div>
</template>

<script>
// 引入
import Header from './components/Header'
import Footer from './components/Footer'

export default {
    name: "",
    components: { Header, Footer }
}
</script>

<style>

</style>
